package com.yf.controller.api.meetingUser;

import com.yf.annotation.IgnoreAuth;
import com.yf.response.R;
import com.yf.service.meetingUser.MeetingUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * User: Administrator
 * Date: 2018-12-13
 * Time: 13:09
 * Description:
 */
@RestController
@RequestMapping("/api/meeting")
public class ApiMeetingUserController {

    @Autowired
    private MeetingUserService meetingUserService;
    //最新活动
    @GetMapping("/all")
    @IgnoreAuth
    public R getAll() {
        return R.ok(meetingUserService.getAll(0));
    }

}
